package com.example.teesystem.mapper;

import com.example.teesystem.entity.PaperFeedback;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 12510
* @description 针对表【t_paper_feedback】的数据库操作Mapper
* @createDate 2022-04-27 19:58:38
* @Entity com.example.teesystem.entity.PaperFeedback
*/
public interface PaperFeedbackMapper extends BaseMapper<PaperFeedback> {
    @Select("select * from t_paper_feedback where paper_id = #{paperId} and student_id = #{studentId};")
    List<PaperFeedback> getPaperFeedbackByPaperIdAndStudentId(int paperId, int studentId);

    @Select("select * from t_paper_feedback where paper_id = #{paperId} and course_id = #{courseId}")
    List<PaperFeedback> getPaperFeedbackByPaperId(int paperId, int courseId);
}




